#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QTcpSocket>
#include <QTextStream>
#include<QMessageBox>
#include <QPixmap>
#include <QSize>
// 移除login.h的直接包含，改为前置声明
class login;

namespace Ui {
class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT


public:
    explicit Dialog(QWidget *parent = 0);
    ~Dialog();

private:
    Ui::Dialog *ui;
    QTcpSocket *socket;
    int i=1;
private slots:
    void connectedSlot();
    void disconnectedSlot();
    void readyReadSlot();
    void pushLinked();
    void getLinked();
    void userLinked();
    // 添加paintEvent事件声明
    void paintEvent(QPaintEvent *event) override;

};

#endif // DIALOG_H
